package com.example.cloud.lijianfeign.controller;

import com.example.cloud.lijianfeign.api.HelloServiceApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lj02
 * @desc
 * @date 2018/6/14
 */
@RestController
public class TestController {

    @Autowired
    private HelloServiceApi helloServiceApi;

    @RequestMapping("/feign/hi")
    public String hi() {
        return helloServiceApi.sayHiFromClientOne("test feign");
    }

}
